<div id="post-navigation">
    <?php if ($numrows > $limit_article){?>
    <div id="post-later-wrap">
        <a href="<?php echo base_url();?>main/page/<?php echo $curr_page + 1;?>">
            Older Post
        </a>
    </div>
    <?php } ?>
    <?php if ($curr_page > 1){?>
    <div id="post-earlier-wrap">
        <a href="<?php echo base_url();?>main/page/<?php echo $curr_page - 1;?>">
            Recent Post
        </a>
    </div>
    <?php } ?>
</div>